const Home = () => import('./home/Home')
const Category = () => import('./category/Category')
const Cart = () => import('./cart/Cart')
const Login = () => import('./login/Login')
const Detail =() => import('./detail/Detail')
const Register =() => import('./register/Register')
const Mine = () => import('./mine/Mine')
const AddAddr = () => import('./addr/AddAddr')
const AddrList = () => import('./addr/AddrList')
export default [
  {
    id: 1,
    path: '/home',
    component: Home
  },
  {
    id: 2,
    path: '/category',
    component: Category
  },
  {
    id: 3,
    path: '/cart',
    component: Cart,
    meta: {
      isAuth: true
    }
  },
  {
    id: 4,
    path: '/tologin',
    component: Login
  },
  {
    id: 5,
    path: '/good/detail/:id',
    component: Detail,
    props: true
  },
  {
    id: 6,
    path: '/register',
    component: Register,
  },
  {
    id: 7,
    path: '/mine',
    component: Mine,
    meta: {
      isAuth: true
    }
  },
  {
    id:8,
    path: '/addaddr',
    component: AddAddr,
    meta: {
      isAuth: true
    }
  },
  {
    id:9,
    path: '/addrlist',
    component: AddrList,
    meta: {
      isAuth: true
    }
  }
]
